using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;

public class ProfilerSystem : MonoBehaviour
{
    public static void Sample(Action action,string tag = "unNamed Sample"){
        Profiler.BeginSample(tag);
        action?.Invoke();
        Profiler.EndSample();
    }
}
